* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #050818;
  background-image:
    radial-gradient(at 0% 0%, rgba(0, 212, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 0, 255, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 255, 136, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(255, 215, 0, 0.1) 0px, transparent 50%);
  color: #fff;
  animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
  0%, 100% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
  }
  50% {
    background-position: 10% 10%, 90% 10%, 90% 90%, 10% 90%;
  }
}

.app {
  width: 100%;
  height: 100%;
}

/* 炫酷的滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00d4ff 0%, #0066ff 100%);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00e4ff 0%, #0076ff 100%);
}

/* 通用动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5),
                 0 0 20px rgba(0, 212, 255, 0.3),
                 0 0 30px rgba(0, 212, 255, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8),
                 0 0 30px rgba(0, 212, 255, 0.5),
                 0 0 40px rgba(0, 212, 255, 0.3);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5),
                0 0 10px rgba(0, 212, 255, 0.3),
                0 0 15px rgba(0, 212, 255, 0.2),
                inset 0 0 5px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8),
                0 0 20px rgba(0, 212, 255, 0.5),
                0 0 30px rgba(0, 212, 255, 0.3),
                inset 0 0 10px rgba(0, 212, 255, 0.2);
  }
}
